package com.zycfc.zsf.boot.exception;

import com.zycfc.zsf.boot.exception.type.*;

public class ServiceException extends BaseException
{
    private static final long serialVersionUID = 1L;
    
    public ServiceException(final IExceptionCode code) {
        super(code);
    }
    
    public ServiceException(final IExceptionCode code, final String... paramArr) {
        super(code, paramArr);
    }
    
    public ServiceException(final IExceptionCode code, final Throwable throwable) {
        super(code, throwable);
    }
    
    protected ServiceException set(final DataResponseExceptionCode code, final Throwable throwable) {
        return new ServiceException((IExceptionCode)code, throwable);
    }
}
